package com.dp.factory.service.abstractFactory;

import com.dp.factory.service.Color;
import com.dp.factory.service.Shape;

/**
 * <p>program: dp.learn.master</p>
 * <p>Description: 抽象工厂模式</p>
 * <p>Copyright: Copyright (c) 2020</p>
 * <p>Company: wylCloud.com</p>
 *
 * @author wyl (764198025@qq.com)
 * @version 1.0
 * @date Create in 2020/6/30
 */
public abstract class AbstractFactory {

    /***
     * 画笔
     * @param shapeType 形状
     * @return 形状对象
     */
    public abstract Shape getShape(String shapeType);

    /***
     *  填充颜色
     * @param colorType 颜色
     * @return 颜色对象
     */
    public abstract Color getColor(String colorType);
}
